package za.org.jcicada.genss.messages;

/**
 * Base class for all KAT-7 reply messages.
 * @author rcrida
 */
public class ReplyMessage extends BaseMessage {

    /** 
     * Class serialization version id.
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * The result component of the reply
     */
    private Result result;
    
    /**
     * Construct a reply message with the specified result status.
     * @param result
     */
    public ReplyMessage(Result result) {
        this.result = result;
    }
    
    public SuccessCode getCode() {
        return result.getCode();
    }
    
    public String getMessage() {
        return result.getMessage();
    }

    public Result getResult() {
        return result;
    }

}
